const esbuild = await import('esbuild')

let result

let js = 'let x: number = 1;'

result = esbuild.transformSync(js, {
    loader: 'ts',
})

console.log(result)

// { warnings: [], code: 'let x = 1;\n', map: '' }
